/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.model.domain.comun;

/**
 *
 * @author Rdelacruz
 */
public class CategoriaSinNombre {
    private String codigo;

    @Override
    public boolean equals(Object obj) {
        if(obj!=null) {
            CategoriaSinNombre cat = (CategoriaSinNombre) obj;
            return codigo!=null ? codigo.equals(cat.getCodigo()) : cat.getCodigo()==null;
        }
        return false;
    }

    public String getCodigo() {
        return codigo;
    }

    public void setCodigo(String codigo) {
        this.codigo = codigo;
        //this.codigo = (codigo!=null && codigo.trim().isEmpty()) ? null : codigo;
    }
 
}
